/**
 * Project Name:sc-parent-service
 * File Name:GenderProbabilityImpl.java
 * Package Name:com.sc.probability.impl
 * Date:2018年6月28日下午10:39:30
 * Copyright (c) 2018, bluemobi All Rights Reserved.
 */

package com.sc.probability.impl;

import com.sc.pojo.Customer;
import com.sc.probability.Probability;

/**
 * Description: 性别概率值  <br/>
 * Date:     2018年6月28日 下午10:39:30 <br/>
 * @author   tianyongxu
 * @version
 * @see
 */
public class GenderProbabilityImpl implements Probability {

    @Override
    public float getProbability(Customer customer) {
        float genderProbability = 0.0f;
        
        if (customer.getCgender() != null && customer.getCgender().trim() != "") {
           if ("男".equals(customer.getCgender())) {
               genderProbability =  0.15f;
           }else {
               genderProbability =  0.1f;
           }
           
       }
       return genderProbability;
    }

}

